<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title>鸡蛋美术商城-网仓</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<link rel="stylesheet" href="/wangcang/tpl/style.css" />
<style   media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
<style type="text/css">
    body,td ,h5, h6, h4{ font-size:13px; font-family: '微软雅黑';margin: 0;padding: 0;font-weight: inherit;}
    .border{border:1px solid #000;}
    .border2{border-bottom:1px solid #000;height: 51px;}
    h5{width: 100%;height: 30px;line-height: 30px;float: left;text-align: center;border: 1px solid #000;}
    h6{width: 100%;height: 71px;line-height: 25px;float: left;text-align: center;border-top: 1px solid #000;border-bottom: 1px solid #000;margin-top: -1px;overflow: hidden;}
    h6.sm{height: 71px;}
    h4{width: 100%;height: 51px;line-height: 51px;float: left;text-align: center;}
    h5 span{height: 30px;overflow: hidden}
    h6 span{height: 51px;overflow: hidden;}
    .l1{width: 250px;float: left;}
    .l2{width: 100px;float: left;}
    .l3{width: 50px;float: left;}
    .l4{width: 100px;float: left;}
    .l5{width: 100px;float: left;}
    .l6{width: 100px;float: left;}
    .l7{width: 100px;float: left;}
    .p1 .l1{width: 250px;}
    .p1 .l3{width: 100px;}
    .p2 .l3{width: 100px;font-size: 20px;}
    .p2 .l2{width: 130px;}
    .p2 .l5{width: 150px;}
    .p2 .l3,.p2 .l5,.p2 .l4,.p2 .l6{font-weight: bold;font-size: 20px;}

    .red{color: #ab0409;}
    .blod{font-weight: bold;}
</style>
</head>
<body style="padding: 20px;margin: 0px;width: 900px;">
    <script type="text/javascript">
        $(function(){
            var num = 1200;
            var html = ' <hr align="center" width="100%" size="1" noshade class="NOPRINT"><div class="PageNext"></div><h4></h4>';
            $.each($('.p1'),function(k,v){
                var top = $(this).offset().top;
                if(top%num<51){
                    num +=10;
                    if(num >= 1270) num = 1270;
                    $(this).after(html);
                }
            });
        });
    </script>
<h2 align="center" style="float: left;width: 100%;line-height: 50px;font-weight: inherit;"><img src="/images/logo.png" style='vertical-align:middle;margin-right:3px;float: left;margin-left: 20px;' height="50"/>订货确认单</h2>

<table id="print_1" width="100%" cellpadding="1">
    <tr>
        <td >收货人：{$order.consignee}</td>
    </tr>
    <tr>
        <td align="left">
            下订单时间：{$order.add_time|date='H-m-d H:i:s',###}　　支付方式：{$order.pay_name}
        </td>
    </tr>
    <tr>
        <td align="left">
            {if $order.tel}联系电话：{$order.tel}　　{/if}<!-- 联系电话 -->
            {if $order.mobile}手机号码：{$order.mobile}　　{/if}<!-- 联系电话 -->
            收货人地址：[{$order.region}]　<span class="red">{$order.area_name}</span>　{$order.address}　<!-- 收货人地址 -->
        </td>
    </tr>
    {if $order.postscript}
    <tr><td>客户留言：{$order.postscript}</td></tr>
    {/if}
    <tr><td>总件数：{$goods_count}</td></tr>
</table>
    <h6 style="line-height: 30px;margin: 10px 0 0 0px;height: 30px;border: none;text-align:left;">出货单号：{$order.order_sns}　商城订单号：{$order.order_sn}[{$order.consignee}]</h6>
    <h5 class="p1">
        <span class="l1">商品名称</span>
        <span class="l2">属性</span>
        <span class="l3">数量</span>
        <span class="l6">单价</span>
        <span class="l7">小计</span>
        <span class="l1">条形码</span>
    </h5>
    {foreach from=$goods_list item=goods key=key}
    <h6 class="p1 {if $goods.isBarcode}sm{/if}">
        <span class="l1" align="left">{$goods.goods_name}{if $goods.is_gift}{if $goods.goods_price gt 0}{$lang.remark_favourable}{else}{$lang.remark_gift}{/if}{/if}{if $goods.parent_id gt 0}{$lang.remark_fittings}{/if}</span>
        <span class="l2">{if $goods.goods_attr AND !$goods.compose_goods}{$goods.goods_attr} {/if}</span>
        <span class="l3 blod" style="font-size: 18px;" align="center">{$goods.goods_number}</span>
        <span class="l6">{$goods.formated_goods_price}</span>
        <span class="l7">{$goods.formated_subtotal}</span>
        <span class="l1">{if $goods.goods_id}<img src="/plugins/barcodegen/test_1D.php?text={$goods.code}&codeType={$goods.codeType}" style="vertical-align:middle;margin-right:3px;float: right" height="50" width="200">{else}礼包名称{/if}</span>
    </h6>
        {foreach from=$goods.compose_goods item=item}
        <h6 class="p1">
            <span class="l1" align="left"><span class="red">（套）</span>{$item.goods_name}{if $item.is_gift}{if $item.goods_price gt 0}{$lang.remark_favourable}{else}{$lang.remark_gift}{/if}{/if}{if $item.parent_id gt 0}{$lang.remark_fittings}{/if}</span>
            <span class="l2">{if $item.attr_name}{$item[attr_name]} {/if}</span>
            <span class="l3 blod">{$item.goods_number}</span>
            <span class="l6">{$item.formated_goods_price}</span>
            <span class="l7">{$item.formated_subtotal}</span>
            <span class="l1">{if $item.goods_id}<img src="/plugins/barcodegen/test_1D.php?text={$item.code}&codeType={$item.codeType}" style="vertical-align:middle;margin-right:3px;float: right" height="50" width="200">{else}礼包名称{/if}</span>
        </h6>
        {/foreach}
    {/foreach}
    <h6 style="border:none;" class="p1">
        <div align="right">
        商品总价：<strong>{$order.formated_goods_amounts}</strong>
        + 邮费：<strong>{$order.formated_shipping_fees}</strong>
        </div>
        <div align="right"> = 订单总金额：<strong>{$order.formated_total_fees}</strong>
        </div>
    </h6>
</body>
</html>